package com.cloud2022.kafka;

import lombok.Data;

import java.util.Date;

/**
 * @author: create by God of SJF
 * @version: v1.0
 * @description: com.cloud2022.kafka
 * @date:2021/12/19
 */
@Data
public class Stock {

    String _id;

    String barcode;

    String productCode;

    Integer status;

    FactoryIn factoryIn;

    FactoryOut factoryOut;

    SdOut sdOut;

    TerminalIn terminalIn;



    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public FactoryIn getFactoryIn() {
        return factoryIn;
    }

    public void setFactoryIn(FactoryIn factoryIn) {
        this.factoryIn = factoryIn;
    }

    public FactoryOut getFactoryOut() {
        return factoryOut;
    }

    public void setFactoryOut(FactoryOut factoryOut) {
        this.factoryOut = factoryOut;
    }

    public SdOut getSdOut() {
        return sdOut;
    }

    public void setSdOut(SdOut sdOut) {
        this.sdOut = sdOut;
    }

    public TerminalIn getTerminalIn() {
        return terminalIn;
    }

    public void setTerminalIn(TerminalIn terminalIn) {
        this.terminalIn = terminalIn;
    }

    @Data
    public static
    class FactoryIn {

        Date FactoryInTime;

        String batchCode;

        String factoryInBillNo;

        String operateName;

        public Date getFactoryInTime() {
            return FactoryInTime;
        }

        public void setFactoryInTime(Date factoryInTime) {
            FactoryInTime = factoryInTime;
        }

        public String getBatchCode() {
            return batchCode;
        }

        public void setBatchCode(String batchCode) {
            this.batchCode = batchCode;
        }

        public String getFactoryInBillNo() {
            return factoryInBillNo;
        }

        public void setFactoryInBillNo(String factoryInBillNo) {
            this.factoryInBillNo = factoryInBillNo;
        }

        public String getOperateName() {
            return operateName;
        }

        public void setOperateName(String operateName) {
            this.operateName = operateName;
        }
    }


    @Data
    public static
    class FactoryOut {

        Date FactoryOutTime;

        String factoryOutBillNo;

        String sdDealerCode;

        String operateName;

        public Date getFactoryOutTime() {
            return FactoryOutTime;
        }

        public void setFactoryOutTime(Date factoryOutTime) {
            FactoryOutTime = factoryOutTime;
        }

        public String getFactoryOutBillNo() {
            return factoryOutBillNo;
        }

        public void setFactoryOutBillNo(String factoryOutBillNo) {
            this.factoryOutBillNo = factoryOutBillNo;
        }

        public String getSdDealerCode() {
            return sdDealerCode;
        }

        public void setSdDealerCode(String sdDealerCode) {
            this.sdDealerCode = sdDealerCode;
        }

        public String getOperateName() {
            return operateName;
        }

        public void setOperateName(String operateName) {
            this.operateName = operateName;
        }
    }

    @Data
    public  static  class SdOut {

        Date SdOutTime;

        String sdDealerCode;

        String takeDealerCode;

        String SDOutBillNo;

        String operateName;

        public Date getSdOutTime() {
            return SdOutTime;
        }

        public void setSdOutTime(Date sdOutTime) {
            SdOutTime = sdOutTime;
        }

        public String getSdDealerCode() {
            return sdDealerCode;
        }

        public void setSdDealerCode(String sdDealerCode) {
            this.sdDealerCode = sdDealerCode;
        }

        public String getTakeDealerCode() {
            return takeDealerCode;
        }

        public void setTakeDealerCode(String takeDealerCode) {
            this.takeDealerCode = takeDealerCode;
        }

        public String getSDOutBillNo() {
            return SDOutBillNo;
        }

        public void setSDOutBillNo(String SDOutBillNo) {
            this.SDOutBillNo = SDOutBillNo;
        }

        public String getOperateName() {
            return operateName;
        }

        public void setOperateName(String operateName) {
            this.operateName = operateName;
        }
    }

    @Data
    public  static  class TerminalIn {

        Date TerminalInTime;

        String TerminalInBillNo;

        String TerminalCode;

        String TerminalName;

        String operateName;

        public Date getTerminalInTime() {
            return TerminalInTime;
        }

        public void setTerminalInTime(Date terminalInTime) {
            TerminalInTime = terminalInTime;
        }

        public String getTerminalInBillNo() {
            return TerminalInBillNo;
        }

        public void setTerminalInBillNo(String terminalInBillNo) {
            TerminalInBillNo = terminalInBillNo;
        }

        public String getTerminalCode() {
            return TerminalCode;
        }

        public void setTerminalCode(String terminalCode) {
            TerminalCode = terminalCode;
        }

        public String getTerminalName() {
            return TerminalName;
        }

        public void setTerminalName(String terminalName) {
            TerminalName = terminalName;
        }

        public String getOperateName() {
            return operateName;
        }

        public void setOperateName(String operateName) {
            this.operateName = operateName;
        }
    }
}
